home *** CD-ROM | disk | FTP | other *** search
- ' This simple macro draws a 20x20 box with it's lower left corner
- ' at x10, y10, then calculates the area of the box. After the
- ' area box is displayed for the user, the result of the area command
- ' used on the box is added to the drawing as a piece of text
- '
- >2DBox
- {
- <Color 0,0,0
- <Layer 5
- <LineStyle 0,2.0000,0.0000
- <PointXYZ 10.0000,10.0000,0.0000
- <PointXYZ 30.0000,30.0000,0.0000
- <Type 1
- <Orientation 0
- }
- '
- >FitToWindow
- {
- }
- '
- >Area
- {
- <PointXYZ 10.0000,10.0000,0.0000
- <PointXYZ 30.0000,10.0000,0.0000
- <PointXYZ 30.0000,30.0000,0.0000
- <PointXYZ 10.0000,30.0000,0.0000
- <PointXYZ 10.0000,10.0000,0.0000
- }
- ' Add area text to drawing
- Text$ = Sys(655)
- >text
- {
- <PointXYZ 10.0000,20.0000,0.0000
- <PointXYZ 30.0000,20.0000,0.0000
- <text "Area of Box is: "[Text$]
- }
-
-